package com.example.adopt.exception;

import com.example.adopt.entity.ResStatus;
import lombok.Getter;

/**
 * 自定义异常
 */
@Getter
public class ServiceException extends RuntimeException {
    private ResStatus code;

    public ServiceException(ResStatus code, String msg) {
        super(msg);
        this.code = code;
    }
}
